<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<h:body>
	<div id="menu">

		<h:graphicImage id="logo" library="images" name="logo.png" />

		<!-- ENDS menu-holder -->
		<div id="menu-holder">
			<!-- wrapper-menu -->
			<div class="wrapper" style="float: right;">

				<!-- Navigation -->
				<!-- <ul id="nav" class="sf-menu">
					<li class="current-menu-item"><a href="../protected/index.xhtml">Home<span
							class="subheader">Seja Bem-Vindo</span></a></li>
				</ul> -->
				<!-- Navigation 
				<div style="float: right; margin: 0px;">-->
				<div id="topMessage">
					<h:form>
						<p:commandButton value="#{bundle.logOut}"
							action="#{userMB.logOut()}" ajax="false"
							style="font-size: 20px;float:right; margin: 10px;" />
						<h:outputText
							value="#{bundle.loginWelcomeMessage}: #{userMB.user.name} |"
							style="float:right; margin-top: 20px; margin-right:10px; color:#fff;" />
					</h:form>
				</div>
				<!--</div>-->
			</div>
			<!-- wrapper-menu -->
		</div>
		<!-- ENDS menu-holder -->
	</div>
	<!-- ENDS Menu -->

	<p:menubar styleClass="menuBar">
		<p:menuitem value="Sistemas" url="#" icon="ui-icon-power" />
		<p:menuitem value="Notícias" url="#" icon="ui-icon-document"
			style="margin-left:10px;" />
		<p:menuitem value="Informações" url="#" icon="ui-icon-comment"
			style="margin-left:10px;" />
		 <p:submenu label="Cadastro" icon="ui-icon-pencil">  
            <p:menuitem value="Usuários" url="/pages/protected/admin/usuarios.xhtml" icon="ui-icon-arrowreturnthick-1-e" />  
            <p:menuitem value="Funcionários" url="/pages/protected/admin/defaultFuncIndex.xhtml" icon="ui-icon-arrowreturnthick-1-e" />  
        </p:submenu>  	

		<!-- <p:menuitem value="Sair" url="#" icon="ui-icon-extlink"
			style="margin-left:10px; float: right;" /> -->
	</p:menubar>
</h:body>
</html>